# Contributor: Julian Weigt <juw@posteo.de>
# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Julian Weigt <juw@posteo.de>
pkgname=gomuks
pkgver=0.2.4
pkgrel=4
pkgdesc="terminal-based Matrix client written in Go"
url="https://github.com/tulir/gomuks"
arch="all"
license="AGPL-3.0-or-later"
depends="ncurses"
makedepends="go olm-dev"
subpackages="$pkgname-doc"
options="!check" # no test suite
source="$pkgname-$pkgver.tar.gz::https://github.com/tulir/gomuks/archive/v$pkgver.tar.gz"

build() {
	go build
}

package() {
	install -Dm755 gomuks "$pkgdir/usr/bin/gomuks"
	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="
d16bd4cb7ae12f172e290916450a6e11900259ceba60ce03a9f19f4351647929984701f4d859a467a88c4dd4ae5e9bf2d7206eeb567763c478c2b357e88ca65f  gomuks-0.2.4.tar.gz
"
